package com.xiaozhengkeji.colastartboot.base.mapper;

import com.xiaozhengkeji.colastartboot.base.entitys.SystemUser;
import java.time.LocalDateTime;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface SystemUserMapper {
    int deleteByPrimaryKey(Integer uid);

    int insert(SystemUser record);

    int insertSelective(SystemUser record);

    SystemUser selectByPrimaryKey(Integer uid);

    int updateByPrimaryKeySelective(SystemUser record);

    int updateByPrimaryKey(SystemUser record);

    List<SystemUser> queryByAll(SystemUser systemUser);

    List<SystemUser> queryByUsername(@Param("username") String username);

    List<SystemUser> queryByUsernameAndPassword(@Param("username") String username, @Param("password") String password);

    List<SystemUser> queryByUsernameLike(@Param("likeUsername") String likeUsername);

    List<SystemUser> queryByEmailAndPassword(@Param("email") String email, @Param("password") String password);

    List<SystemUser> queryByEmailLike(@Param("likeEmail") String likeEmail);
}